package com.sky;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.sky.client")
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
public class SkyOrderApplication {
    public static void main(String[] args) {
        System.setProperty("spring.mvc.async.request-timeout", "0");
        SpringApplication.run(SkyOrderApplication.class, args);
        log.info("sky-service-order started successfully");
    }
}